package com.woniu.liuzhougov.authorityControl.dao;

import com.woniu.liuzhougov.authorityControl.pojo.Rights;

import java.util.List;

public interface RightsMapper {
    int deleteByPrimaryKey(Integer rightsId);

    int insert(Rights record);

    int insertSelective(Rights record);

    Rights selectByPrimaryKey(Integer rightsId);

    int updateByPrimaryKeySelective(Rights record);

    int updateByPrimaryKey(Rights record);

    List<Rights> listRights();

    int countByRightsName(Rights rights);

    int countNumberByParentId(Integer parentId);

    int countNumberByPerms(Rights rights);

    List<String> listPermsByUserId(Integer userId);
}